Skip to content

[jiji-hoon96] WEEK 01 solutions #2378

Merged
jiji-hoon96 merged 3 commits intomainfrom
jiji-hoon96/week1
Mar 7, 2026
Merged

[jiji-hoon96] WEEK 01 solutions #2378
jiji-hoon96 merged 3 commits intomainfrom
jiji-hoon96/week1

Conversation

@jiji-hoon96
Copy link
Contributor

@jiji-hoon96 jiji-hoon96 commented Mar 5, 2026

답안 제출 문제

작성자 체크 리스트

  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

- contains-duplicate
- top-k-frequent-elements
- two-sum
@github-actions github-actions bot added the ts label Mar 5, 2026
@Hyeri1ee Hyeri1ee self-requested a review March 5, 2026 12:38
@jiji-hoon96 jiji-hoon96 changed the title Jiji hoon96/week1 [jiji-hoon96] WEEK 01 solutions Mar 5, 2026
- house-robber
- longest-consecutive-sequence
@jiji-hoon96 jiji-hoon96 moved this from Solving to In Review in 리트코드 스터디 7기 Mar 5, 2026
Copy link

@Hyeri1ee Hyeri1ee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1주차 고생하셨습니다! 승인했어요! : )

return new Set(nums).size !== nums.length
};
let result = false;
if (nums.length !== new Set(nums).size) result = true;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set으로 길이/사이즈로 비교하는 방식으로 푸셨군요!
좋은 풀이 방식인 것 같습니다!

for(let i=0; i<nums.length; i++){
const complement = target - nums[i];

if(newMap.has(complement)){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나머지 필요한 값에 대해서 Map 을 이용하신 풀이 방식 좋은 것 같습니다~!

@jiji-hoon96 jiji-hoon96 merged commit 1f87eb7 into main Mar 7, 2026
1 check passed
@jiji-hoon96 jiji-hoon96 deleted the jiji-hoon96/week1 branch March 7, 2026 07:36
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 7기 Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

2 participants